package io;

import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.Reader;

public class Byte2CharRead {

	/**
	 * 将字节输入流变为字符输入流
	 * @param args
	 * @throws IOException 
	 */
	public static void main(String[] args) throws IOException {
        File file=new File(CharStreamWriteFile.filename);
        Reader read=new InputStreamReader(new FileInputStream(file));
        char[] b=new char[100];
        int len=read.read(b);
        System.out.println(new String(b,0,len));
        read.close();
	}

}
